<div style="background-color: #6490f2">
    <a href="javascript:void(0);" class="navbar-brand text-lt" style="color:#fff">
    	<span><img src="/res/img/header_logo.png"/></span>
        <span class="hidden-folded m-l-xs">智能门禁管理平台</span>
    </a>
    <!-- nabar right -->
    <ul class="nav navbar-nav navbar-right">
        <li class="hidden-xs">
            <a ui-fullscreen></a>
        </li>
        <li class="dropdown">
            <a href class="dropdown-toggle text-white clear icon-height" data-toggle="dropdown">
                <!--pull-right-->
                <span class="thumb-sm avatar m-t-n-sm m-b-n-sm m-l-sm">
                <img alt="{{userInfo.userName || userInfo.account}}" ng-src="{{userInfo.avatar || defaultAvatar}}"
                     style="width: 32px;height: 32px;">
                <i class="on md b-white bottom"></i>
              </span>
                <span class="hidden-sm hidden-md" ng-bind="userInfo.userName || userInfo.account"></span>
                <b class="caret"></b>
            </a>
            <!-- dropdown -->
            <ul class="dropdown-menu">
                <li>
                    <!-- <a ng-click="updateUserInfo()">修改用户信息</a> -->
                    <!-- <a ng-click="updatePassword()">修改密码</a> -->
                    <a ui-sref="main.sys.account.update">修改用户信息</a>
                    <a ng-click="logout();">退出</a>
                </li>
            </ul>
            <!-- / dropdown -->
        </li>
    </ul>
    <!-- / navbar right -->
</div>
<!-- / navbar collapse -->
<!-- 修改用户信息模态框 -->
<script type="text/ng-template" id="updateUserInfo.html">
    <!-- 内容区域 -->
    <div class="wrapper-md content">
        <div class="panel panel-default">
            <!-- 头部 -->
            <div class="panel-heading clearfix">
                <span>修改用户信息</span>
            </div>
            <!--表单-->
            <div class="panel-body">
                <form class="form-horizontal" name="house_form">

                    <div class="form-group" style="margin: 15px 0">
                        <label for="lastname" class="col-lg-2 control-label text-right">名称：</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" ng-model="record.user_name" name="user_name">
                        </div>
                    </div>

                    <div class="form-group" style="margin: 15px 0">
                        <label for="lastname" class="col-lg-2 control-label text-right">手机号码：</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" ng-model="record.phone_" name="phone_">
                        </div>
                    </div>

                    <div class="form-group" style="margin: 15px 0">
                        <div class="col-sm-6 col-sm-offset-2 text-center">
                            <button ng-click="cancel()" class="btn w-xs addNew">取消</button>
                            <button ng-click="updateUF()" class="btn btn-info w-xs m-l-xl addNew"
                                    ng-disabled="isDisabled">保存
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</script>


<!-- 修改密码模态框 -->
<script type="text/ng-template" id="updatePassword.html">

    <!-- 内容区域 -->
    <div class="wrapper-md content">
        <div class="panel panel-default">

            <div class="panel-heading clearfix">
                <span>修改密码</span>
            </div>

            <!--表单-->
            <div class="panel-body" class="reWritePassword">
                <form class="form-horizontal" name="house_form">
                    <div class="form-group" style="margin: 15px 0">
                        <label for="oldPassword" class="col-lg-2 control-label text-right">旧密码：</label>
                        <div class="col-lg-4" style="width: 50%;">
                            <input type="password" class="form-control" ng-model="record.oldPassword"
                                   name="oldPassword">
                            <span id="oldPassword_msg"></span>
                        </div>
                    </div>
                    <div class="form-group" style="margin: 15px 0">
                        <label for="password" class="col-lg-2 control-label text-right">新密码：</label>
                        <div class="col-lg-4" style="width: 50%;">
                            <input type="password" class="form-control" ng-model="record.password"
                                   name="password">
                            <span id="password_msg"></span>
                        </div>
                    </div>
                    <div class="form-group" style="margin: 15px 0">
                        <label for="password1" class="col-lg-2 control-label text-right">确认新密码：</label>
                        <div class="col-lg-4" style="width: 50%;">
                            <input type="password" class="form-control" ng-model="record.password2"
                                   name="password2">
                            <span id="password2_msg"></span>
                        </div>
                    </div>
                    <div class="form-group" style="margin: 15px 0">
                        <div class="col-sm-6 col-sm-offset-2 text-center">
                            <button ng-click="cancel()" class="btn w-xs addNew">取消</button>
                            <button ng-click="updatePW()" class="btn btn-info w-xs m-l-xl addNew"
                                    ng-disabled="isDisabled">保存
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</script>

<style scopde>
    .wrapper-md .panel .panel-body .col-lg-2 {
        background: none;
    }

</style>
      
